import {defineUserConfig} from 'vuepress'
import recoTheme from "vuepress-theme-reco";
import { viteBundler } from '@vuepress/bundler-vite'

export default defineUserConfig({
    title: 'xueyi-doc',
    description: 'Just playing around',
    bundler: viteBundler(),
    theme: recoTheme({
        style: "@vuepress-reco/style-default",
        logo: '/logo.png',
        author: 'xueyi',
        authorAvatar: "/head.png",
        docsRepo: 'https://gitee.com/xueyitiantang/XueYi-MultiSaas',
        docsBranch: 'main',
        docsDir: 'example',
        lastUpdatedText: '',
        series: {
            '/docs/introduce/': [
                'page1', 'page2', 'page3', 'page4'
            ],
            '/docs/backstage/': [
                {
                    text: '后端模块',
                    children: ['page1', 'page2', 'page3', 'page4', 'page5', 'page6', 'page7', 'page8', 'page9', 'page10',
                        'page11', 'page12', 'page17', 'page13', 'page14', 'page15', 'page16']
                },
                {
                    text: '微服务模块',
                    children: ['cloud/mq/page1','cloud/mq/page2','cloud/mq/page3','cloud/mq/page4']
                },
            ],
            '/docs/reception/': [
                {
                    text: '组件',
                    children: ['page1']
                },
                {
                    text: '全局组件',
                    children: ['page2']
                },
                {
                    text: '常用组件',
                    children: ['page3', 'page4', 'page5', 'page6', 'page7', 'page8', 'page9', 'page10',
                        'page11', 'page12', 'page13', 'page14', 'page15', 'page16', 'page17', 'page18', 'page19', 'page20',
                        'page21', 'page22', 'page23', 'page24', 'page25', 'page26', 'page27', 'page28', 'page29', 'page30',
                        'page31', 'page32', 'page33', 'page34']
                },
                {
                    text: '函数式组件',
                    children: ['page35', 'page36', 'page37']
                },
            ]
        },
        navbar: [
            {text: '快速开始', link: '/docs/introduce/page1', icon: 'Compass'},
            {text: '后端', link: '/docs/backstage/page1', icon: 'LicenseGlobal'},
            {text: '前端', link: '/docs/reception/page1', icon: 'LicenseMaintenance'},
            {text: '在线演示', link: 'https://multi.xueyitt.cn/', icon: 'ProgressBarRound'},
            {text: '常见问题', link: '/docs/faq/page1', icon: 'Chat'},
        ],
    }),
    port: 8081
    // debug: true,
})
